<?php

use backend\models\EduUser;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\EduUser */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="edu-user-form">

    <?php $form = ActiveForm::begin(); ?>

<!--    --><?//= $form->field($model, 'openid')->textInput(['maxlength' => true]) ?>

<!--    --><?//= $form->field($model, 'nickname')->textInput(['maxlength' => true]) ?>

<!--    --><?//= $form->field($model, 'avatar_url')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'sex')->textInput() ?>

    <?= $form->field($model, 'city')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'country')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'province')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'phone')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'is_teach')->dropDownList(EduUser::attributeValue()['is_teach']) ?>

    <?= $form->field($model, 'mall_is')->dropDownList(EduUser::attributeValue()['mall_is']) ?>

    <?= $form->field($model, 'is_red')->dropDownList(EduUser::attributeValue()['is_red'])?>

<!--    --><?//= $form->field($model, 'info')->textInput(['maxlength' => true]) ?>

<!--    --><?//= $form->field($model, 'create_time')->textInput() ?>

<!--    --><?//= $form->field($model, 'update_time')->textInput() ?>

    <?= $form->field($model, 'parent_id')->textInput() ?>

    <?= $form->field($model, 'mall_superior')->textInput() ?>

    <?= $form->field($model, 'mall_top')->textInput() ?>

    <?= $form->field($model, 'mall_id')->dropDownList(EduUser::getMall()) ?>

    <div class="form-group">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
